package com.github.sevenmall.orderservice.service;

import com.github.sevenmall.orderservice.pojo.do0.SevenmallCart;

import java.math.BigDecimal;
import java.util.List;

public interface CartService {

   public SevenmallCart queryExist(Integer goodsId, Integer productId, Integer userId);

   public int addCart(SevenmallCart sevenCart);

   public int updateById(SevenmallCart sevenCart);

   public List<SevenmallCart> queryByUid(int userId);

   public List<SevenmallCart> queryByUidAndChecked(Integer userId);

   public int delete(List<Integer> productIdList, int userId);

   public SevenmallCart findById(Integer id);

   public SevenmallCart findById(Integer userId, Integer id);

   public int updateCheck(Integer userId, List<Integer> idsList, Boolean checked);

   public void clearGoods(Integer userId);

   public List<SevenmallCart> querySelective(Integer userId, Integer goodsId, Integer page, Integer limit, String sort, String order);

   public int deleteById(Integer id);

   public boolean checkExist(Integer goodsId);

   public void updateProduct(Integer id, String goodsName, BigDecimal price, String url);


}
